/*
 * @Author: 梁青春
 * @Date: 2022-04-21 15:22:59
 * @LastEditTime: 2022-04-24 15:57:00
 * @LastEditors: 梁青春
 */
import { createApp } from 'vue'
import './utils/flexible.js'
import App from './App.vue'
import Router from './router'
import store from '@/store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import cloneDeep from 'lodash/cloneDeep'
import * as ElIcons from '@element-plus/icons-vue';

// 保存整站vuex本地储存初始状态
window.SITE_CONFIG = {}
window.SITE_CONFIG['storeState'] = cloneDeep(store.state)

const app = createApp(App)
for (const name in ElIcons){
	app.component(name,ElIcons[name])
}
app.use(Router)
app.use(store)
app.use(ElementPlus)
app.mount('#app')